<?php

/**
 * Created by PhpStorm.
 * User: 4399-0661
 * Date: 15-3-21
 * Time: 下午3:10
 */
class LibBase
{
    static protected $_instance = array();

    static function getInstance()
    {
        $class = get_called_class();
        if (!isset(self::$_instance[$class])) {
            self::$_instance[$class] = new $class();
        }
        /**
         * @var \LibHttps $instance
         */
        $instance = self::$_instance[$class];
        return $instance;
    }

} 